/*
 * localStorage 相关操作
 *
 * @Author:    zhoujk
 * @Date:      2022-09-06 20:58:49
 */

export const localSave = (key, value) => {
  localStorage.setItem(key, value)
}

export const localRead = (key) => {
  return localStorage.getItem(key) || ''
}

export const localClear = () => {
  localStorage.clear()
}

export const localRemove = (key) => {
  localStorage.removeItem(key)
}
